<?php

/**
 * Encoding : UTF-8
 * Created on : 2020-10-4 10:09:09 by Implement , hdjahs@qq.com
 */

namespace app\Controllers;

/**
 * Description of BaseController
 *
 * @author Administrator
 */
class BaseController extends \core\base {

    public $redisCommandTable = [
        ["get", "getCommand", 2, "r", 0, NULL, 1, 1, 1, 0, 0],
        ["set", "setCommand", -3, "wm", 0, NULL, 1, 1, 1, 0, 0]
    ];

    public function spt_init($argc, $argv) {
        
    }

    public function checkForSentinelMode($argc, $argv) {
        return 0;
//    int j;
//
//    if (strstr(argv[0],"redis-sentinel") != NULL) return 1;
//    for (j = 1; j < argc; j++)
//        if (!strcmp(argv[j],"--sentinel")) return 1;
//    return 0;
    }

}
